home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 8323 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  18.7 KB

  1. Path: newsreader.wustl.edu!wuarchive!not-for-mail
  2. From: umueller@amiga.icu.net.ch (FTP Admin)
  3. Newsgroups: comp.sys.amiga.misc,comp.sys.amiga.introduction,comp.sys.amiga.datacomm
  4. Subject: FAQ: All about Amiga FTP
  5. Date: 15 Mar 1996 00:00:14 -0600
  6. Organization: Washington University in Saint Louis, MO
  7. Sender: umueller@wuarchive.wustl.edu
  8. Expires: 28 Mar 96 10:00:00 GMT
  9. Message-ID: <4ib11e$m4v@wuarchive.wustl.edu>
  10. NNTP-Posting-Host: @wuarchive.wustl.edu
  11.  
  12. Ladt update: Dec 95
  13.   - GUI FTP clients mentioned (Chapter 1)
  14.   - New FTP site list (Chapter 3)
  15.  
  16.  
  17. 0. Contents
  18. ===========
  19. 1. Introduction
  20. 2. FTP command list
  21. 3. Important sites
  22. 4. A Sample Session
  23. 5. The .netrc File
  24. 6. Archivers
  25. 7. The Archie Database
  26. 8. Mailservers
  27. 9. Transferring to Amiga
  28.  
  29.  
  30.  
  31. 1. Introduction
  32. ===============
  33.  
  34. FTP stands for File Transfer Protocol.  The program with the same name,
  35. 'ftp', allows you to gain access to some other machines and store and/or
  36. retrieve files.  If you have a computer with a connection to the Internet,
  37. and a program called 'ftp' on that computer, you're almost done. There
  38. are some other 'ftp' programs ('WS-FTP' on the PC, 'NCSA telnet' and
  39. 'fetch' on the Mac and 'GUI-FTP' on the Amiga). If you have none of 
  40. these, you have to get the files by mail:  see the section 'Mailservers',
  41. below.
  42.  
  43. In this document, we refer to two computers:
  44.  
  45. o    The 'local machine' is the computer that you are physically logged
  46.     in on.
  47.  
  48. o    The 'remote machine' is the computer that you are contacting via
  49.     your local machine.  It might be right next door, or thousands of
  50.     kilometers away!  Using 'ftp', you can transfer files from the
  51.     remote machine to your local machine, or from your local machine to
  52.     the remote machine.
  53.  
  54. Normally, one needs an account on a remote machine to use it.  However, a
  55. number of machines on the Internet allow anybody to log in as the user 'ftp'
  56. or 'anonymous'.  When you log in using the anonymous account, you'll be
  57. prompted for a password.  You should type your local login name as the
  58. password, especially when you upload (ie send files).  After doing so,
  59. you may retrieve all files found in public areas on the remote machine.  
  60. Doing this is commonly called 'using anonymous ftp' or 'doing some 
  61. anonymous ftp-ing'.
  62.  
  63. The ftp program gives you a prompt that looks like this:
  64.  
  65.         ftp>
  66.  
  67. At this prompt, you can type commands to connect to remote machines, upload
  68. and download files, etc.
  69.  
  70. If you're on a UNIX system, you may want to look at the 'GUI' Aminet
  71. frontend instead of using FTP. Just compile pub/aminet/misc/unix/adt.c
  72. from Aminet (ftp.wustl.edu) on your UNIX box.
  73.  
  74.  
  75. 2. FTP command List
  76. ===================
  77.  
  78. Here are some important commands you'll need within ftp.  In these examples,
  79. any words given inside angled brackets <like this> are like variables
  80. that stand for particular values.  For example, the command
  81.  
  82.             get <remote file name>
  83.  
  84. means you should type the word "get" followed by the name of a file that
  85. is on the remote machine.  An actual example would be:
  86.  
  87.             get SuperProgram.lha
  88.  
  89. Commands For Opening And Closing FTP Connections:
  90.  
  91.     open <site>
  92.  
  93.         Connects to a remote machine.  For valid sites, see below.
  94.  
  95.     close
  96.         Closes connection to the remote site
  97.  
  98.     bye
  99.         Quits FTP.
  100.  
  101.     quit
  102.         Same as bye.
  103.  
  104. Commands For Setting The Transfer Mode
  105.         
  106.     bin
  107.  
  108.         Sets the connection to binary mode for transferring non-text
  109.         files, such as "lha", "lzh", "zoo", "arc", "dms", "zom", "Z"
  110.         (compressed), "gz", "tar", and other archives.  See the
  111.         "Archivers" section below.
  112.  
  113.     asc
  114.         Sets the connection to text (ASCII) mode for transferring
  115.         text files.
  116.  
  117.     It is OK to transfer text files in "bin" mode.  However, it is
  118.     WRONG to transfer binary files in "asc" mode -- they will get all
  119.     messed up.  So to be safe, you can just type "bin" at the beginning
  120.     of each ftp session and leave it that way.  (However, "asc" mode
  121.     is faster for text files.)
  122.  
  123. Commands For Downloading (Getting, Receiving) Files:
  124.  
  125.     get <remote file name>
  126.  
  127.         Receives the named remote file.  This command cannot
  128.         transfer multiple files at a time; for that, see "mget".
  129.  
  130.         If you specify a second argument, it will be used as the
  131.         name for the local file.  (By default, the local file has
  132.         the same name as the remote file.)
  133.  
  134.     mget <remote file 1> <remote file 2> ...
  135.  
  136.         Receives all the above remote files with a single command.
  137.  
  138.     mget <pattern>
  139.  
  140.         Receives all the remote files whose names match <pattern>.
  141.         Patterns may include the symbols
  142.  
  143.             *    stands for any sequence of characters
  144.             ?    stands for any 1 character
  145.  
  146.         For example, if you wanted to download all files that
  147.         begin with "B" and end with ".lzh", type:
  148.  
  149.             mget B*.lzh
  150.  
  151.         To download all files whose names are exactly 4 characters
  152.         long, type:
  153.  
  154.             mget ????
  155.  
  156.         You will be prompted before each file is downloaded.
  157.         To turn off this prompting, see the "prompt" command below.
  158.  
  159. Commands For Uploading (Putting, Sending) Files
  160.  
  161.     put <local file name>
  162.  
  163.         Transmits the local file to the remote machine.
  164.         This works for only one file at a time, similarly to the
  165.         way "get" works.
  166.  
  167.         If you specify a second argument, it will be used as the
  168.         name for the remote file.  (By default, the remote file has
  169.         the same name as the local file.)
  170.  
  171.     mput <local file 1> <local file 2> ...etc.
  172.  
  173.         Transmits all the above local files to the remote machine
  174.         with a single command.
  175.  
  176.     mput <pattern>
  177.  
  178.         Transmits all local files whose names match the given
  179.         pattern.  See the "mget" command, above, for information
  180.         about patterns.
  181.  
  182. Additional Commands For Uploading And Downloading
  183.  
  184.     prompt
  185.  
  186.         Normally, mget and mput will prompt you before transferring
  187.         each file.  If you don't like this, the 'prompt' command
  188.         toggles the prompting on and off.
  189.  
  190.     hash
  191.  
  192.         Normally, files are downloaded silently.  Typing the 'hash'
  193.         command will cause a 'hash mark' to be printed every so
  194.         often, indicating how much downloading has completed so far.
  195.         Typing this command again toggles the hash marks on and off.
  196.  
  197. Commands For Exploring The Local And Remote Machines
  198.  
  199.     Files on the remote machine (and probably your local machine too)
  200.     are organized in directories.  Here is how to navigate those
  201.     directories and view their contents.
  202.  
  203.     dir <pattern>
  204.  
  205.         Lists files in the current directory of the remote machine.
  206.         See "mget", above, for information about patterns.
  207.  
  208.     ls <pattern>
  209.  
  210.         Same as "dir", but list the files in a short format.
  211.  
  212.     cd <directory name>
  213.  
  214.         Changes your current directory on the remote machine.
  215.  
  216.     lcd <directory name>
  217.  
  218.         Changes your current directory on the local machine
  219.  
  220.     mkdir <directory name>
  221.  
  222.         Creates a new directory on the remote machine.  This will
  223.         not work if you do not have permission to do it on the
  224.         remote machine.
  225.  
  226. Some Special And Helpful Functions
  227.  
  228. o    There are some special arguments you can add to the 'get' command.
  229.     If you type:
  230.  
  231.             get myfile -
  232.  
  233.     then file 'myfile' will be displayed on your screen instead of
  234.     downloaded.  If you would like this file to be displayed one
  235.     screen at a time, pausing after each screenful, type
  236.  
  237.             get myfile |more
  238.  
  239.     [NOTE -- NO SPACE BETWEEN THE '|' and 'more'].  This latter command
  240.     may not work on all remote machines.
  241.  
  242. o    Also note that the ls and dir commands take only one argument.  This
  243.     can be either an option or a pattern, BUT NOT BOTH.  If you give a
  244.     second argument, this will be interpreted as a local filename, and
  245.     the directory listing will be stored in that local file instead of
  246.     displayed on your screen.
  247.  
  248.  
  249. 3. Important Sites
  250. ==================
  251.  
  252. Location     Name                     IP Address      Path         Files
  253.                                                                         
  254. USA (MO)     ftp.wustl.edu            128.252.135.4   pub/aminet/    ALL
  255. USA (WI)     ftp.netnet.net           198.70.64.21    pub/aminet/    ALL
  256. USA (AZ)     ftp.amigalib.com         165.247.33.6    pub/aminet/    ALL
  257. Australia    ftp.livewire.com.au      203.16.26.3     pub/aminet/    ALL
  258. Scandinavia  ftp.luth.se              130.240.18.2    pub/aminet/    ALL
  259. Switzerland  ftp.eunet.ch             146.228.10.16   pub/aminet/  22000
  260. Switzerland  ftp.math.ethz.ch         129.132.104.6   pub/aminet/   1000
  261. Germany      kelly.uni-paderborn.de   131.234.128.206 pub/aminet/    ALL
  262. Germany      ftp.uni-paderborn.de     131.234.2.42    pub/aminet/    ALL
  263. Germany      ftp.uni-erlangen.de      131.188.3.2     pub/aminet/  22000
  264. Germany      ftp.uni-stuttgart.de     129.69.18.15    cd  aminet   15000
  265. Germany      ftp.cs.tu-berlin.de      130.149.17.7    pub/aminet/   6000
  266. Germany      ftp.uni-trier.de         136.199.8.81    pub/aminet/   4500
  267. Germany      ftp.tu-chemnitz.de       192.108.33.193  pub/aminet/   4000
  268. Germany      ftp.fh-augsburg.de       141.82.16.242   pub/aminet/   3000
  269. Germany      ftp.uni-oldenburg.de     134.106.40.9    pub/aminet/   2500
  270. Germany      ftp.uni-bremen.de        134.102.228.2   pub/aminet/   2000
  271. Germany      ftp.uni-kl.de            131.246.9.95    pub/aminet/   1500
  272. Germany      ftp.uni-siegen.de        141.99.128.1    pub/aminet/   1500
  273. Germany      ftp.rz.uni-wuerzburg.de  132.187.1.2     pub/aminet/    700
  274. Austria      ftp.giga.or.at           131.130.12.58   pub/aminet/    500
  275. France       ftp.grolier.fr           194.51.174.67   pub/aminet/    ALL
  276. France       ftp.cnam.fr              163.173.128.15  pub/aminet/   8000
  277. Portugal     ftp.ua.pt                193.136.80.68   pub/aminet/   9000
  278. Spain        ftp.gui.uva.es           157.88.36.190   pub/aminet/   1000
  279. UK           ftp.doc.ic.ac.uk         155.198.1.40    pub/aminet/    ALL
  280. UK           micros.hensa.ac.uk       148.88.8.84     pub/aminet/   8500
  281.  
  282. The above group of sites together are called 'Aminet'.  They all contain the
  283. same files (through a process called 'mirroring'), although most of them
  284. delete older files.  Also, there are a some other Amiga FTP sites around, 
  285. and when make announcments about software on these sites, they usually give 
  286. the site address.
  287.  
  288. Finland      ftp.funet.fi            128.214.6.100   pub/amiga/
  289. USA          ftp.isca.uiowa.edu      128.255.21.233  amiga/fx
  290. USA          ftp.hawaii.edu          128.171.44.70   pub/amiga/fish
  291. Scandinavia  ftp.funet.fi            128.214.248.6   pub/amiga/fish
  292.  
  293. Both ftp.cso.uiuc.edu and grind.isca.uiowa.edu have a full collection of
  294. Fish Disks as their main feature.  Whenever I mention a program that is to
  295. be retrieved from a Fish disk, you can get it there.
  296.  
  297.  
  298.  
  299. 4. A Sample Session
  300. ===================
  301.  
  302. This is an example FTP session.  What you have to type is given in square
  303. brackets, on a line by itself, like this:
  304.  
  305.    [Here is something that you would type]
  306.  
  307. Everything else is displayed by the computer.  FTP output is often preceded
  308. by strange numbers like "220" and "150" -- you can ignore these.
  309. The example begins here.
  310.  
  311.    [ftp]
  312.  
  313. ftp> 
  314.      [open wuarchive.wustl.edu]
  315. Connected to wuarchive.wustl.edu.
  316. 220 amiga FTP server (Version 5.60.97 Wed Dec 9 22:23:21 MET 1992) ready.
  317. Name (amiga:umueller): 
  318.                        [ftp]
  319. 331 Guest login ok, send your userid as password.
  320. Password:
  321.           [kdalton]
  322. 230- Welcome to amiga.physik anonymous FTP server
  323. 230-      .....
  324. 230 Guest login ok, access restrictions apply.
  325. ftp> 
  326.      [cd pub/aminet]
  327. 250 CWD command successful.
  328. ftp> 
  329.      [get RECENT |more]
  330. 200 PORT command successful.
  331. 150 Opening ASCII mode data connection for RECENT (5676 bytes).
  332. | Recent uploads to wuarchive.wustl.edu [130.60.80.80] on 11-Dec-1992
  333. | The last 7 days' uploads, newest first. Blank line=new day, + = long .readme
  334. |
  335. |File                Dir        Size Description
  336. |------------------- ---        ---- -----------
  337. tiff2iff.lha         gfx/conv     7K Converts TIFF files to Amiga IFF
  338. DNetIRCpic.lzh       comm/net    16K Demo picture of DNet IRC
  339. DNetIRC.lha          comm/net    88K+IRC intuition DNet client (dnetlib.o neede
  340. ICoons_Nofp.lzh      gfx/3d     172K+Spline based object modeller (no 68881 nee
  341. 1993.lha             mods/u4ia  109K+ProTracker Module By U4ia called '1993'
  342. skick321.lha         os20/util   37K+Soft-kicker under OS 2.0 - new release
  343. monoxyde.dms         demo/mega  477K+MONOXYDE - new demo by Vanish
  344. baudbandit1.4b.lha   comm/misc   16K+Version 1.4b of baudbandit.device
  345. jed206b.lha          util/edit  144K+programmable, programmers editor. OS2.0+
  346. --More--
  347.          [q]
  348. 226 Transfer complete.
  349. local: |more remote: RECENT
  350. 5763 bytes received in 4.5 seconds (1.2 Kbytes/s)
  351. ftp> 
  352.      [cd game/think]
  353. 250 CWD command successful.
  354. ftp> 
  355.      [bin]
  356. 200 Type set to I.
  357. ftp> 
  358.      [get t-triz.lzh]
  359. 200 PORT command successful.
  360. 150 Opening BINARY mode data connection for t-triz.lzh (56496 bytes).
  361. 226 Transfer complete.
  362. local: t-triz.lzh remote: t-triz.lzh
  363. 56496 bytes received in 0.43 seconds (1.3e+02 Kbytes/s)
  364. ftp> 
  365.      [bye]
  366. 221 Goodbye.
  367.  
  368. This is the end of of the sample session.
  369.  
  370. If you're looking for something specific on that site, check the appropriate
  371. directory (using the 'cd' and 'ls' commands), or download the remote files
  372. 'INDEX', 'LOCAL' or 'ls-lR.Z'.  You can then use a program such as the UNIX
  373. 'grep' to search for filenames in them.  (Type 'man grep' in the UNIX shell
  374. to learn about grep).
  375.  
  376.  
  377. 5. The .netrc File
  378. ==================
  379.  
  380. If you put a file named .netrc in your home directory on the local machine,
  381. it will make your ftp life easier.  Just put into this file all information
  382. about how to log in at your favourite FTP site, and it'll be done
  383. automatically when you ftp to that site.
  384.  
  385. After you create the .netrc file, you have to 'chmod 600 .netrc' or it won't
  386. be accepted:
  387.  
  388.         cd
  389.         chmod 600 .netrc
  390.  
  391. Here's an example .netrc file to log onto the machine wuarchive.wustl.edu.
  392. It also defines a macro called 'init' that turns on binary mode and changes
  393. your remote directory to pub/aminet.  To use this macro after you are logged
  394. into the remote machine, just type
  395.  
  396.         $init
  397.  
  398. machine wuarchive.wustl.edu
  399. login ftp
  400. password kdalton
  401. macdef init
  402. bin
  403. cd pub/aminet
  404.  
  405.  
  406. Make sure you put a blank line after the last command, or else it won't work
  407. properly.  Also, remember to set the password to your login name.
  408.  
  409.  
  410. 6. Archivers
  411. ============
  412.  
  413. Most files on FTP sites store their files in archived (compressed) format.
  414. You can recognize the archiver used by the ending of the file name.  These
  415. are the most important ones:
  416.  
  417. Suffix  Archiver        Filename on Aminet
  418.  
  419. .lzh    LhA             LhA_e138.run
  420. .lha    LhA             LhA_e138.run
  421. .zoo    Zoo             zoo2-10.lzh
  422. .zip    Zip             unzip-4.1.lzh
  423. .dms    DMS             dms111.sfx
  424. .run    (LhA)           -
  425. .sfx    (LhA)           -
  426. .tar.Z  tar, compress   tar-compress.lzh
  427. .gz     GNU Zip         gzip124x.lha
  428.  
  429. The AmigaDOS versions of those archivers can be found on the AmiNet sites
  430. (see above) in the directory pub/aminet/util/arc, except for GNU Zip which
  431. is found in pub/aminet/util/pack.  To give you a start, LhA is also stored
  432. in self-extracting form (.run or .sfx).  Just execute it to extract it.
  433.  
  434. UNIX versions of most of these archivers are available.  You can get them
  435. from wuarchive.wustl.edu in the directory /pub/aminet/misc/unix/, or if
  436. they're not there, use archie (see below) to find them. The files names are:
  437.  
  438. LhA  lha-1.00.tar.Z  
  439. Zoo  zoo-2.10.tar.Z
  440. Zip  unzip41.tar.Z
  441. Dms  dmscheck.c.Z
  442.  
  443.  
  444. 7. The Archie Database
  445. ======================
  446.  
  447. There is a database of all files on all FTP sites worldwide, called 'archie'.
  448. They have a mailserver, a telnet service, and a client software.  Telnet to
  449. archie.sura.net and log in as 'archie', or send mail containing HELP in its
  450. body to archie@quiche.cs.mcgill.ca.  You'll get more information that way.
  451.  
  452.  
  453. 8. Mailservers
  454. ==============
  455.  
  456. Some sites allow sending them magic mail messages which cause them to FTP
  457. things from other sites, uuencode them, and send them to you.  Others only
  458. send the files stored locally at that site.  Here are the most important mail
  459. servers.  Send a mail containing HELP in its body to find out more about them
  460. (note that many German links are slow):
  461.  
  462. These Aminet sites offer binaries by email. (Mail servers only send you 
  463. files from that site while ftpmail services can connect to others)
  464.  
  465.   ftpmail@ftp.luth.se               (Keeps complete Aminet locally)
  466.   ftpmail@doc.ic.ac.uk              (Keeps complete Aminet locally)
  467.   ftpmail@ftp.uni-stuttgart.de
  468.   ftpmail@ftp.uni-trier.de
  469.   ftp-mailer@ftp.informatik.tu-muenchen.de
  470.   mail-server@ftp.cs.tu-berlin.de
  471.   mail-server@cs.tu-berlin.de
  472.  
  473. And here some other ftpmail services that you can use to connect to Aminet
  474. sites:
  475.  
  476.   ftpmail@decwrl.dec.com
  477.   ftpmail@grasp.insa-lyon.fr
  478.   ftpmail@ftp.sunet.se
  479.   ftpmail@ieunet.ie
  480.   ftpmail@archie.inesc.pt
  481.   ftpmail@ftp.Dartmouth.EDU
  482.   ftpmail@ftp.SHSU.edu
  483.   ftpmail@cs.uow.edu.au
  484.  
  485. 9. Transferring to Amiga
  486. ========================
  487.  
  488. VIA MODEM
  489.  
  490. After you have the files on your UNIX account, you need to get the files
  491. home.  Most Amiga terminal programs have one or more ways to transfer files
  492. to your Amiga.  Read your terminal program documentation for more
  493. information.
  494.  
  495. One recommended method is to use ZModem.  If your local machine has the
  496. 'sz' command, and your terminal program supports ZModem, you are set.
  497. To download the file 'whatever.lzh' to your Amiga, type:
  498.  
  499.         sz whatever.lzh
  500.  
  501. and then use your terminal program to receive it.  If your site does not
  502. have 'sz', you can get it from krynn.efd.lth.se in the file
  503. /pub/modem/rzsz9107.tar.Z.  Compile it, or use archie to find a version
  504. specific for your UNIX flavor.
  505.  
  506. In the worst case, you can turn on your terminal program's "screen capture"
  507. feature and type:
  508.  
  509.     uuencode <filename filename
  510.  
  511. to get your file typed to the screen in 'uuencoded' format.  On your Amiga,
  512. uudecode the file (using uudecode from Fish Disk 92).  Also, some sites
  513. still use 'kermit'. If you have a program of that name, you can use one of
  514. the Amiga kermit implementations found on Aminet to get files home.
  515.  
  516. VIA FLOPPY
  517.  
  518. If you don't have a modem, you can try to find a workstation with 3.5"
  519. floppy drive.  Sun 4 computers have them.  There you can either use the
  520. program mtools (try 'man mcopy') to store the files in MSDOS format and
  521. retrieve them using MSH (Fish Disk 382) or CrossDOS (included with AmigaDOS
  522. 2.1 and higher), or you use gnu tar (UNIX version to be found on
  523. decuac.dec.com, /pub/binaries/gnutar-1.10.tar.Z) to store files on the disk
  524. in .tar format using the command 'gtar cfvM /dev/rfd0c'.  Then you restore
  525. the files with gnu gtar (found on wuarchive.wustl.edu, in the file
  526. pub/aminet/util/gnu/gtar110.lzh) and the FLAT device (Fish Disk 535) and MSH
  527. (or any other PC format reading tool).  Mount FLAT:, and then enter 'gtar
  528. xfvM flat:MSH' or replace the MSH by the name of your emulation tools.
  529.  
  530. If a file is too large to fit on a floppy, you can use misc/unix/bsplit*
  531. from Aminet to split it, and c:join under AmigaDOS to put it back together.
  532.  
  533. Under MSDOS, you can use the command 'backup' to save files onto floppies
  534. and misc/emu/pcres250.lha from Aminet to restore the backups on the Amiga
  535. side. This method automatically splits large files.
  536.  
  537. If you'd like some additional info to be included in this FAQ, contact
  538. umueller@wuarchive.wustl.edu.  -Urban Mueller
  539.  
  540.  
  541.